package net.bezrabotnih.cabinet.client.request;

import java.util.List;

import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.ServiceName;

import net.bezrabotnih.client.managed.request.JobProxy;
import net.bezrabotnih.client.managed.request.JobRequest;
import net.bezrabotnih.client.managed.request.UserAccountProxy;

@ServiceName("net.bezrabotnih.server.domain.Job")
public interface CabinetJobRequest extends JobRequest{
	
	abstract Request<java.util.List<net.bezrabotnih.client.managed.request.JobProxy>> findJobsByProviderId(String providerId);

	abstract Request<List<JobProxy>> findAvailableJobsByPerformerId(String id);
	
	abstract Request<List<JobProxy>> findJobsByWinnerId(String id);
	
	abstract Request<List<JobProxy>> findJobsByProviderIdWithWinnerNull(String providerId);

	abstract Request<List<JobProxy>> findDoneJobsByProviderId(String currentUserAccountId);

}
